export const to = (p1) => {
  const p2 = p1
    .then((res) => {
      return [null, res]
    })
    .catch((err) => {
      return [err, null]
    })
  return p2
}

// export const to = (myPromise) => myPromise.then((res) => [null, res]).catch()
